package gov.pbc.nn.kjgl.entity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Entity;

import com.bstek.dorado.annotation.PropertyDef;

import gov.pbc.nn.core.entity.BaseEntity;

/**
 * 机房设备出入、维修记录
 * 
 * @author louis
 * 
 */
@Entity
@Table(name = "T_DEVICE_RECORD")
public class DeviceRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@PropertyDef(label = "申请进入机房ID")
	@Column(name = "CRAE_ID_", length = 60)
	private String craeId;

	@PropertyDef(label = "设备名称")
	@Column(name = "NAME_", length = 200)
	private String name;

	@PropertyDef(label = "品牌型号")
	@Column(name = "MODEL_", length = 200)
	private String model;

	@PropertyDef(label = "序列号")
	@Column(name = "SERIAL_NO_", length = 200)
	private String serialNo;

	@PropertyDef(label = "操作类型", description = "0：设备新增；1：设备撤出；2：设备更新；3：设备检修；4：设备变更；5：其他")
	@Column(name = "OPER_TYPE_")
	private int operType;

	@PropertyDef(label = "设备原位置")
	@Column(name = "OLD_LOCATION_", length = 200)
	private String oldLocation;

	@PropertyDef(label = "设备现位置")
	@Column(name = "NEW_LOCATION_", length = 200)
	private String newLocation;

	@PropertyDef(label = "详细操作内容")
	@Column(name = "OPER_CONTENT_", length = 1000)
	private String operContent;

	@PropertyDef(label = "存在风险和影响")
	@Column(name = "RISK_IMPACT_", length = 1000)
	private String riskImpact;

	@PropertyDef(label = "防范措施")
	@Column(name = "PRECAUTIONS_", length = 1000)
	private String precautions;

	@PropertyDef(label = "完成情况")
	@Column(name = "COMPLETE_REMARK_", length = 1000)
	private String completeRemark;

	//120
	@PropertyDef(label = "签字")
	@Column(name = "SIGN_STR_", length = 120)
	private String signStr;

	@PropertyDef(label = "签字")
	@Column(name = "SIGN_IMG_")
	private byte[] signImg;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getSerialNo() {
		return serialNo;
	}

	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}

	public int getOperType() {
		return operType;
	}

	public void setOperType(int operType) {
		this.operType = operType;
	}

	public String getOldLocation() {
		return oldLocation;
	}

	public void setOldLocation(String oldLocation) {
		this.oldLocation = oldLocation;
	}

	public String getNewLocation() {
		return newLocation;
	}

	public void setNewLocation(String newLocation) {
		this.newLocation = newLocation;
	}

	public String getOperContent() {
		return operContent;
	}

	public void setOperContent(String operContent) {
		this.operContent = operContent;
	}

	public String getRiskImpact() {
		return riskImpact;
	}

	public void setRiskImpact(String riskImpact) {
		this.riskImpact = riskImpact;
	}

	public String getPrecautions() {
		return precautions;
	}

	public void setPrecautions(String precautions) {
		this.precautions = precautions;
	}

	public String getCompleteRemark() {
		return completeRemark;
	}

	public void setCompleteRemark(String completeRemark) {
		this.completeRemark = completeRemark;
	}

	public String getSignStr() {
		return signStr;
	}

	public void setSignStr(String signStr) {
		this.signStr = signStr;
	}

	public byte[] getSignImg() {
		return signImg;
	}

	public void setSignImg(byte[] signImg) {
		this.signImg = signImg;
	}

	public String getCraeId() {
		return craeId;
	}

	public void setCraeId(String craeId) {
		this.craeId = craeId;
	}

}
